package fish.web.aop.log;

import org.aspectj.lang.ProceedingJoinPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogAspect {
    private static Logger log = LoggerFactory.getLogger(LogAspect.class);
    
    public Object around(ProceedingJoinPoint jp) throws Throwable {
	log.info("calling method:{}.{}", jp.getTarget().getClass().getName(), jp.getSignature().getName());
	Object result = jp.proceed();
	log.info("exist method");
	
	return result;
    }
}
